package com.project.bean;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 供应商实体
 */
@Data
@NoArgsConstructor
@TableName("t_vendor")
@ExcelTarget("vendor")
public class VendorBean {
    @TableId(value = "pk_vendorId", type = IdType.AUTO)
    /**供应商id*/
    private Integer id;
    @Excel(name = "供应商名称")
    @TableField("v_name")
    /**供应商名称*/
    private String name;

    @TableField("v_headerName")
    @Excel(name = "负责人")
    /**负责人名称*/
    private String headerName;
    @Excel(name = "负责人电话")
    @TableField("v_headerPhone")
    /**负责人电话*/
    private String headerPhone;
    @Excel(name = "供应商地址")
    @TableField("v_address")
    /**供应商地址*/
    private String address;
    @Excel(name = "经营范围")
    @TableField("v_ranges")
    /**经营范围*/
    private String ranges;


    @Override
    public String toString() {
        return "VendorBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", headerName='" + headerName + '\'' +
                ", headerPhone='" + headerPhone + '\'' +
                ", address='" + address + '\'' +
                ", ranges='" + ranges + '\'' +
                "}\n";
    }
}